	<div class="location">当前位置：
		<?php echo $this->Html->link('首页',array('controller'=>'Index','action'=>'index','plugin'=>false))?> &gt;  
		<?php echo $this->Html->link('场馆导航',array('controller'=>'Venues','action'=>'index','plugin'=>false))?> &gt; 
		<span><?php echo $venue['Venue']['title_cn']?></span>
	</div>
  	<div class="content">
  		<!-- Add fancyBox main JS and CSS files -->
  		<?php 
  			echo $this->Html->script('fancybox/jquery.fancybox'); 
  			echo $this->Html->css('fancybox/jquery.fancybox');
  		?>
  		<?php 
			echo $this->Html->script('bxslider/jquery.bxslider.min');
			echo $this->Html->css('bxslider/jquery.bxslider');
		?>
  		<style>
		.toggle{margin-top:1px !important; cursor:pointer;} .toggle span{ color:#0aa733; cursor: pointer; 
		background:url(img/default/jtimg2.jpg) no-repeat; padding:8px; margin-left:5px; } 
		.toggle .jtTop{ background-position:0 7px;} .toggle .jtFoot { background-position:-16px 7px;  } 
		.toggle_content{display:none}.toggle_content >div> p{margin:0}.toggle_content > div{margin-top:10px;}
		.toggle_main_description{height: 120px;overflow: hidden;margin-bottom:10px;position:relative;}
		#tmd_toggle_bar{position: absolute;right:0;bottom: 0px;text-align: right;width: 100%;background: #fff;}
  		</style> 
  		<?php //pr($venue)?>
        <div class="conLeft floatl">
            <div class="jsAbout Box">
            	<h3><?php echo $venue['Venue']['title_cn']?></h3>
                <div class = 'toggle_main_description'>
                	<?php echo $venue['Venue']['description']?>
                	<a id = 'tmd_toggle_bar' href = 'javascript:;'>更多</a>
                	<div id = 'bottom_flag'></div>
                </div>
                <a href="#">场馆地址:<?php echo $venue['Venue']['way_address']?></a>
                <h4 class = 'toggle'>驾车信息<span class = 'jtTop'></span></h4>
                <div class = 'toggle_content'><?php echo $venue['Venue']['way_driver']?></div>
                <h4 class = 'toggle'>公交信息<span class = 'jtTop'></span></h4>
                <div class = 'toggle_content'><?php echo $venue['Venue']['way_bus']?></div>
                <h4 class = 'toggle'>停车信息<span class = 'jtTop'></span></h4>
                <div class = 'toggle_content'><?php echo $venue['Venue']['way_parking']?></div>
                <h4 class = 'toggle'>场馆周边<span class = 'jtTop'></span></h4>
                <div class = 'toggle_content'><?php echo $venue['Venue']['way_around']?></div>
                <h4 style = 'margin-top:1px !important; margin-bottom:15px;'>相关图片</h4>
                <ul id = 'venue-pic-gallery' class="xgImg">
                	<?php foreach ($venue['VenueGallery'] as $gallery):?>
	                	<li>
	                		<?php 
	                			if ($gallery['SysPhoto']['id']) {
	                				$pic = $this->Html->image($gallery['SysPhoto']['file_path'],array('alt'=>$venue['Venue']['title_cn']));
	                			}else{
	                				$pic = $this->Html->image('default/xgimg.jpg',array('alt'=>$venue['Venue']['title_cn']));
	                			}
	                			echo $this->Html->link($pic,$this->Html->url('/img/'.$gallery['SysPhoto']['file_path'],true),
											array(
												'data-fancybox-group'=>"gallery",
												'title'=>$gallery['title'],
												'class'=>'fancybox','escape'=>false));
	                		?>
	                	</li>
                	<?php endforeach;?>
                </ul>
            </div>
            <div class="clear"></div>
            <div class="xgyc Box">
            	<h3>
                	<span>相关演出</span>
                    <?php echo $this->Html->link('更多&gt;&gt;',citylink('Tickets','index',false,false)+array('venue'.$venue['Venue']['id']),array('escape'=>false))?>
                </h3>
                <ul class="ppin">
                	<?php foreach ($venue['Ticket'] as $ticket):?>
                    <li>
                        <dl>
                            <dt>
                            	<?php 
								if(isset($ticket['ListPhoto']['file_path']))
									$pic = $ticket['ListPhoto']['file_path'];
								else 
									$pic = 'default/himg_19.jpg';
								?>
	                    		<?php $image = $this->Html->image($pic,array(
										'alt'=>$ticket['title'],
										'title'=>$ticket['title']
									  ));
								?>
								<?php echo $this->Html->link($image,
												TicketView(array('Ticket'=>$ticket)),
												array('escape'=>false)
									  )
								?>
                            </dt>
                            <dd>
                        	<h4>
                        		<?php echo $this->Html->link($ticket['title'],
											TicketView(array('Ticket'=>$ticket)),
											array("class"=>"mcheng",'title'=>$ticket['title'])
									  )
								?>
                        	</h4>
                            <p>
                            	<span>时间：<?php 
                            		echo $ticket['showtime'];
                            		if($ticket['endtime'] != '')
                        			echo ' 至 '.$ticket['endtime']; 
                            		?></span>   
                            	<span>场馆：<?php echo $this->Html->link($ticket['Venue']['title_cn'],
								            		citylink('Venues','view')+array($ticket['Venue']['id']),
								            		array('title'=>$ticket['Venue']['title_cn']));
								            ?>
								</span>
							</p>
                            <p>
                            	<?php 
                            		$price = array();
                            		foreach ($ticket['TicketPrice'] as $tp){
                            			$price[$tp['price']] = $tp['price'];
                            		}
                            		ksort($price);
                            	?>
                            	票价： <?php echo join(',',$price) ?>
                            </p>
                            <!--  <p>状态: 销售中</p>-->
                            <?php if($ticket['spt_eticket']){
								echo '<em>电子票</em>';                            	
                            }?>
                            <p>简介：<?php 
		                            echo cleanText($ticket['content'],130);
                            	 ?>
                            </p>
                            <?php echo $this->Html->link('立即购票',
											TicketView(array('Ticket'=>$ticket)),
											array("class"=>"goumai",'title'=>$ticket['title'])
									  )
								?>
                        </dd>
                        </dl>
                    </li>
                    <?php endforeach;?>
                </ul>
                <div class="clear"></div>
            </div>
        </div>
        <div class="conRight floatr">
        	<div class="rightImg Box">
        		<?php 
            			if($venue['SysPhoto']['id']){
            				$pic = $this->Html->image($venue['SysPhoto']['file_path'],array('width'=>209,'height'=>168,
'										title'=>$venue['Venue']['title_cn'],'alt'=>$venue['Venue']['title_cn']));
            			}else{
            				$pic = $this->Html->image('default/cgimg1.jpg',array('width'=>209,'height'=>168,
										'title'=>$venue['Venue']['title_cn'],'alt'=>$venue['Venue']['title_cn']));
            			}
            			echo $this->Html->link($pic.$venue['Venue']['title_cn'],
								citylink('Venues','view')+array($venue['Venue']['id']),
									array('escape'=>false));
					?>
            </div>
        	<?php echo $this->element('index/ticketCate')?>
           <!-- blog -->
           <?php echo $this->element('block/blog')?>
           <!-- end blog-->
           <!-- map -->
           <?php echo $this->element('block/map',array('VenueMap'=>$venue['Venue']))?>
           <!-- end map -->
        </div>
  </div>	
<script>
	$(document).ready(function(){
		$('.fancybox').fancybox();
		$('.toggle').toggle(function(){
			$(this).next().slideDown()
				.end().find('span').attr('class','jtFoot');
			
		},function(){
			$(this).next().slideUp()
				.end().find('span').attr('class','jtTop');
		});
		
		$('#tmd_toggle_bar').toggle(function(){
			var $tar = $(this).parent();
			$tar.animate({height:$tar.get(0).scrollHeight},500)
			$(this).html('收起');
		},function(){
			$(this).parent().animate({height:'120px'},500)
				.end().html('更多');
		})
		  $('#venue-pic-gallery').bxSlider({
			  pager:false,
			  moveSlides:6,
			  minSlides: 6,
			  maxSlides: 6,
			  slideWidth: 120,
		  });
		});
</script>